package itdfq.dfq.Creational_Pattern.jianzaozhe;

/**
 * @Author GocChin
 * @Date 2021/3/22 12:22
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Waiter {
    private ProductBuilder productBuilder;

    public void setProductBuilder(ProductBuilder productBuilder){
        this.productBuilder=productBuilder;
    }
    public Product construct(){
        productBuilder.buildLiuliang();
        productBuilder.buildTonghuashijian();
        return productBuilder.getProduct();
    }
}
